/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Agency.models;

/**
 *
 * @author wangari
 */
public class Tenant {
    /**
     * variables
     */
    String tenantsName;
    String idNumber;
    String houseType;
    String housePlotNum;
    String theTown;
    String thegender;
    String occupation;
    String PhonNumber;
    
    /**
     * Constructor that takes in  all the details of a tenant : name, phone number,id no, house type, 
     * house plot number, town location , gender and Occupation
     * @param tenantsName
     * @param idNumber
     * @param PhonNumber
     * @param houseType
     * @param housePlotNum
     * @param theTown
     * @param thegender
     * @param occupation 
     */
    public Tenant(String tenantsName, String idNumber,String PhonNumber,String houseType,
            String housePlotNum,String theTown,String thegender,String occupation){
    this.tenantsName=tenantsName;
    this.idNumber= idNumber;
    this.PhonNumber= PhonNumber;
    this.houseType=houseType;
    this.housePlotNum=housePlotNum;
    this.theTown = theTown;
    this.thegender=thegender;
    this.occupation= occupation;
    }
    /**
     * returns the name of the tenant
     * @return tenantsName
     */
    public String getTheName(){
        return tenantsName;
    }
    /**
     * returns the identification number of the Tenant
     * @return idNumber
     */
    public String getTheIdNumber(){
        return idNumber;
    }
    /**
     * returns phone number of the customer
     * @return PhonNumber
     */
    public String getThePhoneNumber(){
        return PhonNumber;
    }
    /**
     * returns the house type of the tenant
     * @return houseType
     */
    public String getTheHouseType(){
        return houseType;
    }
    /**
     * returns the plot number of the house
     * @return housePlotNum
     */
    public String getPlotNum(){
        return housePlotNum;
    }
    /**
     * returns the gender of the tenant
     * @return theGender
     */
    public String getGender(){
        return thegender;
    }
    /**
     * Returns the tenants occupation
     * @return occupation
     */
    public String getOccupation(){
        return occupation;
    }
    /**
     * returns the town that the tenants house is located
     * @return theTown
     */
    public String getTown(){
        return theTown;
    }
    /**
     * returns a string representation of the house with all the variables
     * @return (tenantsName+" "+idNumber+" "+PhonNumber+" "+houseType+" "+housePlotNum+" "+theTown+" "+theGender+" "+occupation);
     */
    public String toString(){
        return (tenantsName+" "+idNumber+" "+PhonNumber+" "+houseType+" "+housePlotNum+" "+theTown+" "+thegender+" "+occupation);
    }
    
}
